<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>用户登录</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" href="forum/css/style.css" type="text/css" />
		<script type="text/javascript" language="javascript"
			src="forum/js/login.js">
	
</script>

	</head>

	<body>

		<jsp:include page="../include/header.jsp"></jsp:include>
		<table class="loginTable" border="0" align="center">
			<!--主题内容区-->

			<jsp:include page="../include/welcomeBanner.jsp"></jsp:include>

			<tr>
				<td class="currentPos">
					<div style="float: left; width: 400px">
						<img src="forum/img/current.png" />
						当前位置：
						<span class="pos"> <s:a action="init" namespace="/">首页</s:a>
							-> <s:a>用户登录</s:a> </span>
					</div>

					<jsp:include page="../include/searchDiv.jsp"></jsp:include>

				</td>
				<td>

				</td>
			</tr>
			<tr>
				<td>
					<hr size="4" color="#B5BAC7" style="margin-top: 0px;">
				</td>
			</tr>

			<tr>
			<tr>
				<td>
					<div
						style="padding-top: 55px; width: 250px; float: right; background: url('forum/img/login_back.png') no-repeat">

						<table border="0" align="right">
							<form action="loginregister!login" name="login" id="login"
								method="post">
							<tr>
								<td>
									用户名：
								</td>
								<td colspan="2">
									<input name="name" id="name" type="text" onblur="checkName()" />
								</td>
							</tr>
							<tr>
								<td>
									密&nbsp&nbsp码：
								</td>
								<td colspan="2">
									<input name="pwd" id="pwd" type="password" />
								</td>
							</tr>
							<tr>
								<td>
									验证码：
								</td>
								<td width="60px">
									<input type="text" name="checkcode" id="checkcode" size="5" />
								</td>
								<td>
									<img alt="验证码" name="code" id="code"
										src="loginregister!checkCode.action" onclick="changeCode()" />
								</td>
							</tr>
							<!--  -->
							<tr>
								<td></td>
								<td colspan="2">
									<table>
										<s:checkbox name="auto" value="false" fieldValue="true"
											label="自动登录" />
									</table>
								</td>
							</tr>

							<tr>
								<td></td>
								<td colspan="2">

									<span id="name_e"><s:property value="#name_e" />
									</span>
								</td>
							<tr>
							<tr>
								<td>
									<input type="image" src="forum/img/login_btn.png"
										onclick="login.submit" />
								</td>
								<td>
									<input type="image" src="forum/img/reset_btn.png"
										onclick="javascript:freset(document.login);return false" />
								</td>
							</tr>
							<tr>
								<td colspan="3">
									<hr>
								</td>
							</tr>
							</form>
							<tr>
								<td colspan="3">
									没有账号？
								</td>
							</tr>
							<tr>
								<td></td>
								<td colspan="2">
									<input type="image" src="forum/img/register_btn.png"
										onclick="javascript:fregister()" />
								</td>
							</tr>
						</table>

					</div>
				</td>
			</tr>
		</table>

		<jsp:include page="../include/footer.jsp"></jsp:include>
	</body>
</html>
